﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="Esteira.aspx.cs" Inherits="CDSBDemandControl.View.Web.PaginasInternas.Esteira" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="divBloco">
        <div class="divEsquerda">
            <div class="FiltroProjeto" runat="server" id="DivFiltroProjeto">
                <table id="TblFiltro" runat="server" cellpadding="0" cellspacing="0" border="0">
                    <tr id="Tr1" runat="server">
                        <td>
                            <span id="spanFiltroFabrica" runat="server" class="spanFiltro">
                                <asp:Label ID="LblComboFabrica" AssociatedControlID="CmbFiltroFabrica" Text="Fornecedor"
                                    runat="server"></asp:Label>
                                <asp:DropDownList runat="server" ID="CmbFiltroFabrica" OnSelectedIndexChanged="CmbFiltro_SelectedIndexChanged"
                                    AutoPostBack="true">
                                    <asp:ListItem Text="Todos" Value="Todos"></asp:ListItem>
                                    <asp:ListItem Text="7COMm" Value="7COMm"></asp:ListItem>
                                    <asp:ListItem Text="CDSB" Value="CDSB"></asp:ListItem>
                                </asp:DropDownList>
                            </span><span id="spanFiltroProjetos" runat="server" class="spanFiltro">
                                <asp:Label ID="LblComboFiltro" Text="Projetos" runat="server" AssociatedControlID="cmbFiltroProjeto"></asp:Label>
                                <asp:DropDownList runat="server" ID="cmbFiltroProjeto" OnSelectedIndexChanged="CmbFiltro_SelectedIndexChanged"
                                    AutoPostBack="true">
                                    <asp:ListItem Text="Todos" Value="Todos"></asp:ListItem>
                                    <asp:ListItem Text="iMercado" Value="iMercado"></asp:ListItem>
                                    <asp:ListItem Text="Sinacor" Value="Sinacor"></asp:ListItem>
                                    <asp:ListItem Text="Site BVMF" Value="SiteBVMF"></asp:ListItem>
                                </asp:DropDownList>
                            </span>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="divDireita" style="vertical-align: middle;">
            <span class="Obs">
                <asp:Label ID="LblObsOrdenacao" runat="server" Text=""></asp:Label>
            </span>
        </div>
    </div>

<asp:GridView ID="GrdEsteira" runat="server" AutoGenerateColumns="False" Caption="Esteira de Desenvolvimento"
                CaptionAlign="Left" CellPadding="2" Width="100%" Visible="False" AllowSorting="True"
                GridLines="None" OnDataBinding="Grid_DataBinding">
                <RowStyle BackColor="#E1ECFC" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" />
                <Columns>
                    <asp:TemplateField HeaderText="Detalhes">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/img/REFBAR.ICO" NavigateUrl='<%# Eval("ActiveControlUrL")%>'
                                Target="_self" ToolTip="Detalhes" Visible='<%# !string.IsNullOrEmpty(Eval("ActiveControlUrL").ToString()) %>'></asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" HeaderText="ID" />
                    <asp:BoundField DataField="Project" HeaderText="Projeto"></asp:BoundField>
                    <asp:TemplateField HeaderText="Título">
                        <ItemTemplate>
                            <asp:Label ID="lblTitle" runat="server" Text='<%# this.formatTitle(DataBinder.Eval(Container.DataItem, "Title"),DataBinder.Eval(Container.DataItem, "Justification")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="EstimatedStart" HeaderText="Início Estimado" DataFormatString="{0:dd/MM/yyyy}" />
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" AlternateText='<%# string.IsNullOrEmpty(Eval("PlanningStateRemarks").ToString()) ? string.Empty : Eval("PlanningStateRemarks") %>'
                                ImageUrl='<%# Eval("PlanningStateImg")%>' Visible='<%# !string.IsNullOrEmpty(Eval("PlanningStateImg").ToString()) %>' />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Start" HeaderText="Início" DataFormatString="{0:dd/MM/yyyy}" />
                    <asp:TemplateField HeaderText="Término Estimado">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("EstimatedConclude", "{0:dd/MM/yyyy}") %>'
                                CssClass='<%# Eval("StatusColor")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="WorkItemType" HeaderText="Tipo" />
                    <asp:BoundField DataField="State" HeaderText="Status" />
                    <asp:BoundField DataField="Reason" HeaderText="Razão" />
                    <asp:TemplateField HeaderText="Responsável">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Responsible") %>' CssClass='<%# Eval("StatusColor")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="EstimatedHours" HeaderText="Horas Estimadas" />
                </Columns>
                <HeaderStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
                    HorizontalAlign="Left" />
                <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="X-Small" Wrap="False" />
            </asp:GridView>

<div id="divAdendo" class="Adendo" runat="server" />
    <table width="100%">
        <tr>
            <td>
                <div id="divTotalRegGrd01" runat="server" class="divTotalReg">
                    <asp:Label ID="lblTotalRegistros1" runat="server"></asp:Label>
                    <asp:Label ID="lblMsgSemResultados1" runat="server"></asp:Label>
                </div>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td>
                <div runat="server" id="DvLegenda" visible="true">
                    <table border="0" cellpadding="0" cellspacing="0" class="TableLegenda">
                        <tr>
                            <td colspan="2" style="padding: 0 0 4px 0;">
                                <br />
                                Legenda:
                            </td>
                        </tr>
                        <tr>
                            <td class="late">
                                <asp:Label ID="LgdFormatoLATE" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescLATE" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="deadline">
                                <asp:Label ID="LgdFormatoDEADLINE" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescDEADLINE" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="deadlinecoming">
                                <asp:Label ID="LgdFormatoDEADLINECOMMING" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescDEADLINECOMMING" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="away">
                                <asp:Label ID="LgdFormatoAWAY" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescAWAY" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>

</asp:Content>
